import Vue from 'vue'
import Router from 'vue-router'
import homepage from '../components/homepage/homepage'
import voucher from '../components/voucher/voucher'
import assets from '../components/assets/assets'
import report from '../components/report/report'
import contract from '../components/contract/contract'
import setting from '../components/setting/setting'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/homepage'
    },
    {
      path: '/homepage',
      component: homepage
    },
    {
      path: '/voucher',
      component: voucher
    },
    {
      path: '/assets',
      component: assets
    },
    {
      path: '/report',
      component: report
    },
    {
      path: '/contract',
      component: contract
    },
    {
      path: '/setting',
      component: setting
    }
  ]
})
